package smartbooks.ui;

import javax.swing.UIManager;
import smartbooks.ui.users.UsersFrame;
import smartbooks.ui.login.LoginFrame;
import smartbooks.ui.manager.UserManager;
import smartbooks.ui.util.CommonFunctions;

/**
 *
 * @author Ankit
 */
public class SmartBooks {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try 
        {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        }
        catch (Exception e) { }
        
        CommonFunctions.populateStateCityMapping();
        
        if(UserManager.getNoOfAdmin()>0) {
            LoginFrame loginFrame = new LoginFrame();
        } else {
            UsersFrame usersFrame = new UsersFrame();
        }
    }
}